-- GENERATED SPELL FOR [Wailer] --


function spell0_16321(pUnit, Event) --@Wailing Dead,Self--
pUnit:FullCastSpellOnTarget(7713,pUnit)
pUnit:RegisterEvent('Sorts_16321', 6343, 1)
end

function Sorts_16321(pUnit, Event)
local choix_sorts_16321 = math.random(0, 0)
if choix_sorts_16321 == 0 then
pUnit:RegisterEvent('spell0_16321', 1, 1)
end
end

function mob16321_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16321', math.random(1500, 3000), 1)
end

function mob16321_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16321_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16321_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16321, 1, 'mob16321_Action')
RegisterUnitEvent(16321, 2, 'mob16321_Leave')
RegisterUnitEvent(16321, 3, 'mob16321_Kill')
RegisterUnitEvent(16321, 4, 'mob16321_Die')
